<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" type="text/css" href="${createLinkTo(dir:'css', file:'main2.css')}" />
<title>Admin Page</title>
</head>

<body>
<div>
    <div align="center" class="header">
    <img src="${createLinkTo(dir:'images', file:'OptimumSol.gif')}" width="388" height="60" />
	<div class="divlogout"><g:link class="link1" controller="adminPage">Home</g:link><span class="link1style">&nbsp;|&nbsp;</span>
						   <g:link class="link1" controller="login" action="doLogout">Logout</g:link></div>
    </div>
<div>
<div class="content">
	<table align="center" width="225px" border="0">
		<tr>
			<td valign="bottom" class="head1" colspan="3">Departments
			<p class="para1">List of Departments.</p>
			<hr class="hr1"/></td>
		</tr>
		<tr>
			<td>
				<table class="tableForm" width="100%">
					<tr>
						<td class="tdheader1">Name</td>
						<td class="tdheader1" width="16">Delete</td>
					</tr>
					<g:each status="i" var="dhee" in="${departments}">
					<tr class="${(i % 2) == 0 ? 'listBackground1' : 'listBackground2'}">
						<td class="listContent">
						<g:link class="link1" controller="department" action="edit" id="${dhee.id}">
						${dhee.departmentName}
						</g:link></td>
						<td class="listContent" align="center">
						<g:link controller="department" action="delete" id="${dhee.id}">
						<image border="0" src="${createLinkTo(dir:'images', file:'delete.png')}"/>
						</g:link>
						</td>
					</tr>
					</g:each>
				</table>
			</td>
		</tr>
	</table>
</div>
</body>
</html>
